package com.azusa.ktc_friend.client;

import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

@FeignClient(value = "ktc-user",fallback = UserClientImpl.class)
public interface UserClient {

    /**
     * 修改粉丝数
     * @param userId
     * @param count
     * @return
     */
    @PutMapping("user/updateFansCount/{userId}/{count}")
    Result updateFansCount(@PathVariable("userId") String userId,@PathVariable("count") Integer count);

    /**
     * 修改关注数
     * @param userId
     * @param count
     * @return
     */
    @PutMapping("user/updateFollowCount/{userId}/{count}")
    Result updateFollowCount(@PathVariable("userId") String userId,@PathVariable("count") Integer count);
}
